package com.nn.algorithm;

public class Utils {

	// sigmoid activation function
	public static double activationFunction(double inputValue) {
		return (1d / (1 + Math.pow(Math.E, -1d * inputValue)));
	}
	
	public static double derivativeFunction(double a){
		return a * (1.0 - a);
	}
	
}
